home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970326-19970626 / 000222_news@newsmaster….columbia.edu _Thu May 22 03:04:52 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  5KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id DAA02012
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 22 May 1997 03:04:52 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id DAA16242
  7.     for kermit.misc@watsun; Thu, 22 May 1997 03:04:51 -0400 (EDT)
  8. Path: news.columbia.edu!news.cs.columbia.edu!psinntp!howland.erols.net!newsfeed.internetmci.com!news.wwa.com!news.voicenet.com!omni2!cmosley
  9. From: cmosley@voicenet.com (Christopher Mosley)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Autostarting DSZ from MS-DOS Kermit
  12. Date: 19 May 1997 18:23:49 GMT
  13. Organization: Voicenet - Internet Access - (215)674-9290
  14. Lines: 160
  15. Message-ID: <5lq5rl$tp$2@news3.voicenet.com>
  16. References: <slrn5nsr75.s30.nospam@unix1.netaxs.com> <5ln8hf$ltc$1@newsmaster.cc.columbia.edu>
  17. NNTP-Posting-Host: omni2.voicenet.com
  18. X-Newsreader: TIN [version 1.2 PL2]
  19. Xref: news.columbia.edu comp.protocols.kermit.misc:7064
  20.  
  21. Frank da Cruz (fdc@watsun.cc.columbia.edu) wrote:
  22. : In article <slrn5nsr75.s30.nospam@unix1.netaxs.com>,
  23. :  <nospam@bucket.bit> wrote:
  24. : : According to the man page for "sz" (Unix zmodem) on our system, the 
  25. : : following option is available:
  26. : : 
  27. : :     "g    Send ESC-[-?-3-4-l to start DSZ from Kermit"
  28. : : 
  29. : : I use MS-Kermit 3.14 as a terminal emulator -- does this version of
  30. : : Kermit support autostarting DSZ in this manner?  If so, how to enable
  31. : : this feature?  (If available, it seems to be turned off by default.)
  32. : : 
  33. : : I've looked in Kermit's online help and done a fair amount of searching 
  34. : : using Alta Vista and DejaNews but haven't turned anything up yet on this.  
  35. : : Thanks in advance for any followups with useful info...
  36. : : 
  37. : This information applied to old versions of MS-DOS Kermit, and also required
  38. : that a certain macro be defined on the Kermit end.  This feature is no longer
  39. : available in the same form because the escape sequence cited above conflicted
  40. : with a later use by DEC in VT terminals.  From the KERMIT.BWR file:
  41.  
  42. : (2) INCOMPATIBILITIES BETWEEN MS-DOS KERMIT 3.14 AND EARLIER VERSIONS
  43.  
  44. :  1. In version 3.13, the escape sequence that invoked the TERMINALR/S macros
  45. :     was changed to control screen writing direction (details in KERMIT.UPD),
  46. :     for compatibility with newer VT terminals.  Any host software that sent
  47. :     the TERMINALR/S sequences will need to be converted to send APC sequences.
  48. :     See KERMIT.UPD and the WordPerfect section of this file.
  49.  
  50. : A new method that is (a) more flexible, and (b) less likely to conflict with
  51. : anything else is described in Section 10 of the KERMIT.UPD file.
  52.  
  53. : - Frank
  54.  
  55. ****************************************************************************
  56. ------------------------------------------------------------------------------
  57.  
  58. defined in mscustom.ini file.
  59. if dsz def is not the same it is probably similar.
  60. gsz or dsz must be in path
  61.  
  62. define rz run gsz F ha on port 2 G rz -r
  63.  
  64. ---------------------------------------------------------------------------
  65. for use in unix scripts and aliases
  66.  
  67. easier not to type control chars
  68.  
  69. also better not to have control chars 
  70. in scripts: apc comand sequence 
  71. will be implemented with some viewers.
  72.  
  73. use gcc
  74. apc_echo.c
  75.  
  76. #include<stdio.h>
  77. void main(int argc,char *argv[]){
  78. printf("^[_ %s\n^[\\",argv[1]);}  
  79.  
  80. /*  p.s. use real control not ^ and [  */
  81.  
  82. ----------------------------------------------------------------------------
  83.  
  84. script for auto downloading file
  85.  
  86. #!/bin/sh
  87. apc_echo "rz,output \13"
  88. sz $* 
  89.                                                                            
  90.  
  91. -----------------------------------------------------------------------------
  92. # csh alias for downloading file
  93.  
  94. # must not be named sz  - recursion occurs
  95.  
  96.  
  97. alias szz 'apc_echo  "output sz \!*\13,rz,output \13"'
  98.  
  99.               better way is:
  100.  
  101. alias szz 'apc_echo "rz,output \13";sz \!*'                   
  102. --------------------------------------------------------------------------
  103.  
  104. something else
  105.  
  106. script for downloading and viewing mime type images directly from lynx,
  107. tin. Name of script must be specified in .mailcap metamail file
  108.  
  109. i.e.   image/*;scriptname  %s 
  110.  
  111. #!/bin/sh 
  112. picture=`echo $1 | cut -c6-`
  113. prefix=`echo $picture | cut -c1-3`
  114. #prefix and suffix transposed for tin mime encoded files 
  115. if test $prefix = "mm."  
  116. then
  117. newname=`echo $1 | cut -c10-`.mm 
  118. mv $1 /tmp/$newname
  119. apc_echo "rz,run view.bat $newname,clear apc"
  120. sz /tmp/$newname
  121. else
  122. apc_echo "rz,run view.bat $picture,clear apc" 
  123. sz $1
  124. fi
  125.  
  126. -----------
  127. view.bat
  128.  
  129. @echo off
  130. rem stuffit is free resident keyboard buffer stuffer at oakland 
  131. stuffit 'ex'13 'view2 %1'13 > nul
  132. exit 
  133.  
  134. -----------
  135. view2.bat
  136.  
  137. @echo off
  138. rem unload resident stuffer 
  139. stuffit /R > nul
  140. rem runme is bat file for " free "DISPLAY" viewer  
  141. call runme %1
  142. rem run kermit and connect again
  143. msk315 stay,output ^W, c
  144.  
  145. p.s. It is not necessary to do it like this (exit kermit and restart kermit)
  146. did it to save memory.
  147. _________________________________________________________________________
  148.